package com.elink.enginerring.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.elink.enginerring.blog.co.BlogCo;
import com.elink.enginerring.blog.entity.Blog;

public interface BlogMapper {
    int deleteByPrimaryKey(String blogId);

    int insert(Blog record);

    int insertSelective(Blog record);

    Blog selectByPrimaryKey(String blogId);

    int updateByPrimaryKeySelective(Blog record);

    int updateByPrimaryKey(Blog record);
    
	List<Blog> selectList(@Param("co")BlogCo co);

	int selectCount(@Param("co")BlogCo co);
	
	Blog getInfo(@Param("blogId")String blogId,@Param("type") int type);
	
	@Update("update  blog set auth_status = #{authStatus} where find_in_set(blog_id,#{ids})")
	void addAuth(@Param("ids")String ids,@Param("authStatus")int authStatus);
}